package com.ansion.commonchat.contact;

public class AppConstants {

    public static final String kNEXT_MSGID_RANGEBEGIN = "kNEXT_MSGID_RANGEBEGIN";
    // 登录相关事件
    // 登录成功发出来的事件
    public static final String EVT_ACTION_LOGINSERVER_SUCCESS = "action_loginserver_success";
    // 登录失败发出来的事件
    public static final String EVT_ACTION_LOGINSERVER_FAIL = "action_loginserver_fail";
    public static final String EVT_LOGINFAIL_ERRCODE = "EVT_LOGINFAIL_ERRCODE";
    public static final String EVT_LOGINFAIL_EXTRADATA = "EVT_LOGINFAIL_EXTRADATA";
    // 网络中断重新连接成功事件
    public static final String EVT_ACTION_LOGINSERVER_RESUCCESS = "action_loginserver_resuccess";
    // 正在连接中事件
    public static final String EVT_ACTION_LOGING = "action_loginserver_loging";
    // 网络中断
    public static final String EVT_ACTION_NETLOST = "EVT_ACTION_NETLOST";
    // 手工注销事件
    public static final String EVT_ACTION_MANUALLOGOUT = "action_loginserver_manuallogout";
    public static final int INVALID_ID = -1;
    public static final String COCO_ID_INDEX = "cocoIdIndex";

    public static final String AVATAR_URL = "url";

    public static final String GCM_SENDER_ID = "868628779501"; // im.thebot.messenger // "581891569614" for im.thebot // "958806719373" for im.thebot.messenger

    // ATTENTION: Also see CocoConstants.IS_TEST_VERSION
    // ATTENTION: Also see AndroidManifest.xml io.fabric.ApiKey and com.google.android.maps.v2.API_KEY

    public final static int URL_INDEX = 1;// 内外网切换 0内网 1外网 2预发布(外网IP，接入内网服务器)

    public static String ACTION_FINISH_ACTIVITY = "ACTION_FINISH_ACTIVITY";
    public static String KEY_COUNTRY_CODE = "key_country_code";
    public static String KEY_COUNTRY_PHONE = "key_country_phone";
    public static String EXTRA_GID = "EXTRA_GID";
    public static int EXTRA_PERMISSION_GUIDE = 43;

    public interface CocoSystemAction {
        String DELEGATE_ACTIVITY_ACTION = "com.baba.ACTION_KILL_ACTIVITY";
        String ACTION_KICK_OUT = "com.baba.ACTION_KICK_OUT";
//        String ACTION_NOSDCARD = "action_nosdcard";

        // 检查版本通知
        String ACTION_CHECKVERSION_END = "action_checkversion_end";
        String ACTION_CHECKVERSION_ERRCODE = "action_checkversion_errcode";

    }


    public interface FriendShipAction {
        String EXTRA_ERRCODE = "extra_errcode";
        String EXTRA_FRIENDID = "action_friendid";
        String ACTION_GETBLOCKLIST_END = "action_getblocklist_end";
        String ACTION_BLOCKCONTACT_END = "action_blockContact_end";
        String ACTION_GETMATCHUSERS_END = "action_getmatchusers_end";
        String ACTION_GET_RECENT_CALLLOGS = "getrecentphonecalllogs";

    }

    public static final String ACTION_REFRESH_CHATS_TAB_LIST = "action_refresh_chats_tab_list";
    public static final String ACTION_GLOBAL_CONFIG_READY = "action_global_config_ready";

    public interface WebLoginAction {
        String ACTION_WEBLOGIN_CHECK = "action_weblogin_check";

        String ACTION_WEBLOGIN_CONFIRM = "action_weblogin_confirm";

        String ACTION_WEB_REMOVE_AUTH = "action_web_removeauth";

        String ACTION_WEBLOGIN_UPDATE_MOBSTAT = "action_weblogin_update_mobstat";

        String EXTRA_ERRCODE = "extra_errcode";
    }

    public interface MiscAction {
        //获取GPS位置信息
        String ACTION_GEOLOCATION_END = "action_geolocation_end";
        String ACTION_GEOLOCATION_ERRORCODE = "action_geolocation_errorcode";

        String KEY_GEOLOCATION_LATITUDE = "key_geolocation_latitude";
        String KEY_GEOLOCATION_LONGITUDE = "key_geolocation_longitude";

        String EXTRA_ERRCODE = "extra_code";
    }

    public interface LocationAction {

        String ACTION_GETADDRESS_END = "action_getaddress_end";

        String ACTION_GETINTERESTPOINT_END = "action_getinterestpoint_end";

        String ACTION_GETNEARBYPOINT_END = "action_getnearbypoint_end";

        String EXTRA_ERRCODE = "extra_errcode";

        String EXTRA_USERLOCATION = "extra_userlocation";
        String EXTRA_LAT = "extra_lat";
        String EXTRA_LOG = "extra_log";
        String EXTRA_LANGUAGE = "extra_language";
        String EXTRA_SEARCHWORD = "extra_searchword";
        String EXTRA_NEEDGETNEARBYPOINT = "extra_needgetnearbypoint";

        String EXTRA_PAGETOKEN = "extra_pagetoken";
        String EXTRA_RET = "extra_ret";
    }


    public interface ExtraBase {
        String ERRCODE = "errcode";
    }


    public interface VoipConstans {

        public static final int MSG_UPDATE_DURATION = 1;

        public static final int MSG_CALL_TIME_OUT = 2;

        public static final int MSG_RECONNECTING_TIME_OUT = 3;

        public static final int MSG_VOICE_MAIL_TIME_OUT = 4;

        public static final int MSG_VOICE_MAIL_START = 5;

        public static final int MSG_UPDATE_NOTIFYCATION = 6;

        public static final int MSG_HEADSET_DISCONNECTED = 7;

        public static final int MSG_HEADSET_CONNECTED = 8;

        public static final int MSG_DELAY_UNACCEPT_TOAST = 9;

        public static final int DURATION_RECONNECT_TIME_OUT = 1000 * 90;

        public static final int DURATION_CALL_TIME_OUT = 1000 * 60 * 2;

        public static final int DURATION_CALL_END = 500; // 1000 * 2;

        public static final int DELAY_UPDATE_DURATION = 1000;

        public static final int DELAY_UPDATE_NOTIFY_DURATION = 1000;

        public static final int TYPE_ANCHAT = 0;

        public static final int TYPE_RTC = 1;

        String ACTION_BACKGROUND_VOIP_END = "ACTION_BACKGROUD_VOIP_END";

        String ACTION_IN_CALL_AD_LOADED = "ACTION_IN_CALL_AD_LOADED";
        String ACTION_VIDEO_CALL_AD_LOADED = "ACTION_VIDEO_CALL_AD_LOADED";
        public static final String RINGTONE_SILENT = "Silent";
        String HAVE_WIFI4G_TYPE = "have_wifi4g_type";
    }

    public interface UserActiveAction {

        public static final String ACTION_UPLOAD_USERACTIVE_STATUS = "ACTION_UPLOAD_USERACTIVE_STATUS";
        public static final String ACTION_GETLASTSEEN_AND_SUBSRIBE = "ACTION_GETLASTSEEN_AND_SUBSRIBE";
        public static final String ACTION_UNSUBSCRIBE_USERACTIVE = "ACTION_UNSUBSCRIBE_USERACTIVE";
        public static final String ACTION_GET_BATCHUSER_LASTSEEN = "ACTION_GET_BATCHUSER_LASTSEEN";
        public static final String ACTION_USERACTIVE_HEARTBEAT = "ACTION_USERACTIVE_HEARTBEAT";
        String EXTRA_ERRCODE = "extra_errcode";
    }

    public interface PublicAccountAction {
        public static final String ACTION_SUBSCRIBE = "ACTION_SUBSCRIBE";
        public static final String ACTION_UNSUBSCRIBE = "ACTION_UNSUBSCRIBE";
        public static final String ACTION_ALERTRECEIVE_OFFICALMSG = "ACTION_ALERTRECEIVE_OFFICALMSG";
        public static final String ACTION_LISTSUB_OFFICALMSG = "ACTION_LISTSUB_OFFICALMSG";
        public static final String ACTION_ACQUIRE_OFFICALPROFILE = "ACTION_ACQUIRE_OFFICALPROFILE";
        public static final String ACTION_SEARCHOFFICIAL = "ACTION_SEARCHOFFICIAL";
        public static final String ACTION_SUBSCRIBEBATCH = "ACTION_SUBSCRIBEBATCH";
        public static final String ACTION_LIST_RECOMMENDOFFICAL = "ACTION_LIST_RECOMMENDOFFICAL";
        public static final String EXTRA_ERRCODE = "extra_errcode";
        public static final String EXTRA_DATA = "extra_data";
        public static final String EXTRA_LASTPAGE = "extra_lastpage";
        public static final String EXTRA_BEAN = "extra_bean";
    }

    public interface UserBackgroundAction {
        public static final String ACTION_GETCHATBACKGROUNDLIST = "ACTION_GETCHATBACKGROUNDLIST";
        String EXTRA_ERRCODE = "extra_errcode";
    }

    public interface NetWorkErrorCode {
        public static final String Code = "code";
        public static final int IOException_Code = 2;
        public static final int Default_Code = 0;
    }

    public interface SomaFragmentAction {
        String ACTION_SOMAFRAGMENT_REMOVECHAT = "ACTION_SOMAFRAGMENT_REMOVESELF";
    }

    public interface RpcRetCode {
        int OK = 0;
        int FAIL = -1;
    }

    public interface RpcRetKey {
        String KEY_CHANNEL = "channel";
        String KEY_UID = "uid";
        String KEY_DATA = "data";
        String KEY_RETCODE = "retCode";
        String KEY_MANUAL = "manual";
        String KEY_CLEARDATA = "cleardata";
        String KEY_FORCEUPDATE = "forceupdate";
    }

    public interface HWPERMISSION {
        String ACTION_SHOWPERMISSIONTIP = "action_hw_permissiontip";
    }

    public interface SELECT_MEMBERS_FOR_MP {
        String EXTRA_LIST = "select_members_list";
        String EXTRA_MAX_NUM = "extra_max_num";
        int MAX_NUM = 20;
    }


    /**
     * http://wiki.corp.algento.com/pages/viewpage.action?pageId=19727206
     * 错误码
     */
    public interface GROUP_CALL_RESPONSE_CODE {
        int CODE_NOT_SUPPORTED = 1001;//低版本不支持
        int CODE_USER_NOT_EXIST = 114;//用户不存在
        int CODE_FAILED_GROUP_CALL_START = 601;//创建失败
        int CODE_FAILED_GROUP_CALL_END = 608;//创建失败
    }

    public interface GROUP_MANAGER_RESPONSE_CODE {
        int CODE_CAN_NOT_CANCEL_OWNER_ADMIN = 3018;
    }

    /**
     * 分享卡片相关参数
     */
    public interface APP_SHARE_CARD {
        String KEY_TYPE = "type";
        String KEY_TITLE = "title";
        String KEY_CONTENT = "content";
        String KEY_COVER = "cover";
        String KEY_APP_NAME = "appName";
        String KEY_ACTION = "action";
        String KEY_APP_ICON = "appIcon";
        String KEY_EXT = "ext";
        String SHARE_TYPE_MINI_PROGRAM = "0";
    }

    public interface MINI_PROGRAM_COMM {
        String KEY_ACTIVITY_RESULT_FN = "key_activity_result_fn";
        String KEY_ACTIVITY_REQUEST_CODE = "key_activity_request_code";
        String KEY_CHOOSE_CONTACT_COUNT = "key_choose_contact_count";
        String KEY_RESULT_VALUE = "resultValue";
        String KEY_RESULT_TYPE = "resultType";
        String RESULT_TYPE_SUCCESS = "success";
    }

    public interface CONTACT_CONSTANTS {
        String CONTACT_SHARE_ITEM = "contactShareItem";
        String CONTACT_SEARCH_ITEM = "contactSearchItem";
        String CONTACT_PERMISSION_CARD_ITEM = "contactPermissionCardItem";
    }

    public interface ACTION_TYPE {
        String ACTION_TYPE_KEY = "actionType";
        String ACTION_TYPE_CHAT = "chat";
        String ACTION_TYPE_CALL = "call";
    }

    public interface SELECTMEETMEMBERS {
        String EXTRA_LIST = "select_meet_members_list";
        String EXTRA_IS_MULTI_SELECT = "is_MultiSelect";
        String EXTRA_SELECTED_UIDS = "selectedUIDs";
        String EXTRA_SELECTED_MEETID = "selectedMeetId";
        String EXTRA_ISP2P_CALL = "is_P2P_Call";
        String EXTRA_VOIP_TYPE = "voipType";
        String EXTRA_CREATE_MEET = "is_create_meet";
        String EXTRA_GID = "EXTRA_GID";
        String EXTRA_NOT_DISPLAY_COUNT = "EXTRA_NOT_DISPLAY_COUNT";
        String EXTRA_RECENT_CHAT_LIST = "EXTRA_RECENT_CHAT_LIST";
        String EXTRA_DISMISS_INVITE_LINK = "EXTRA_DISMISS_INVITE_LINK";
        int EXTRA_PERMISSION_GUIDE = 43;
    }
}
